package evidences

import (
  "github.com/gin-gonic/gin"
  v1 "livefind/api/v1"
)

type EvidenceRouter struct {
}

func (e *EvidenceRouter) InitEvidencesRouter(Router *gin.RouterGroup) {
  evidenceRouter := Router.Group("evidences")
  var evidenceApi = v1.ApiGroupApp.EvidenceGroup.EvidenceApi
  {
    evidenceRouter.POST("evidence", evidenceApi.CreateEvidence) // 新建证据
    evidenceRouter.GET("list", evidenceApi.ListEvidences)       // 获取证据列表
    evidenceRouter.GET("evidence", evidenceApi.GetEvidence)     // 根据Id获取证据信息
    evidenceRouter.POST("upload", evidenceApi.UploadFile)       // 上传证据文件
  }
}
